import App from "@/App";
import mainRoutes from "./main-routes";
import { lazy } from "react";

const NotFound = lazy(() => import("@/pages/error/404"));

const routes = [
  {
    path: "/",
    element: <App />,
    meta: {
      isShowNav: false,
    },
    children: [...mainRoutes],
  },
  {
    path: "*",
    element: <NotFound />,
    meta: {
      title: "404",
      isShowNav: false,
    },
  },
];

export default routes;
